package com.guofen.dao;

import com.guofen.pojo.SjqCompostCraft;
import com.guofen.pojo.SjqCompostProduceElectricity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SjqCompostProduceElectricityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqCompostProduceElectricity record);

    int insertSelective(SjqCompostProduceElectricity record);

    SjqCompostProduceElectricity selectByPrimaryKey(Integer id);

    SjqCompostProduceElectricity getlast();

    int updateByPrimaryKeySelective(SjqCompostProduceElectricity record);

    int updateByPrimaryKey(SjqCompostProduceElectricity record);

    List<SjqCompostProduceElectricity> selectAll();

    List<SjqCompostProduceElectricity> selectByDate(@Param("startDate") String startDate,
                                       @Param("endDate") String endDate);
}